package com.infindo.appcreate.zzyj.entity;

import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "zzyj_expert", schema = "public")
public class Expert implements java.io.Serializable {

    private static final long serialVersionUID = -3973101546052955127L;
    private Long id;
    private String code;
    private String name;
    private String image;
    private String desc;
    private String authIcon;//专家认证图标 V
    private Integer authIconType;//0 blue v; 1 yellow v;
    private String weiBo;
    
    public Expert(){
        
    }
    
   public Expert( String code, String name, String image, String desc, String authIcon, String weiBo){
        super();
        this.code = code;
        this.name = name;
        this.image = image;
        this.desc = desc;
        this.authIcon = authIcon;
        this.weiBo = weiBo;
   }

	@SequenceGenerator(name = "generator", sequenceName = "seq_zzyj_expert",allocationSize=1)
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "code")
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name = "_desc")
    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
    
    @Column(name = "auth_icon")
    public String getAuthIcon() {
        return authIcon;
    }
    public void setAuthIcon(String authIcon) {
        this.authIcon = authIcon;
    }
    
    @Column(name = "weibo")
    public String getWeiBo() {
        return weiBo;
    }
    public void setWeiBo(String weiBo) {
        this.weiBo = weiBo;
    }
    
    @Column(name = "auth_icon_type")
    public Integer getAuthIconType() {
        return authIconType;
    }
    public void setAuthIconType(Integer authIconType) {
        this.authIconType = authIconType;
    }
    
    @Column(name = "image")
    public String getImage() {
        return image;
    }
    public void setImage(String image) {
        this.image = image;
    }
	
}
